import request from '@/utils/request'

export function sendMsg(data) {
  return request({
    url: '/sendMsg',  // 使用代理路径
    method: 'post',
    data: data
  })
}

export function uploadImage(data) {
  return request({
    url: '/uploadImage',  // 使用代理路径
    method: 'post',
    data: data,
    headers: {
      'Content-Type': 'multipart/form-data'
    }
  });
}